
function MapDetails(controller, map){
	
	var AnnotationType = require('ui/model/constants/AnnotationType');
	
	var Controller = require('ui/model/Controller');
	
	//Jugador
	var _controller = controller;
	var _map = map;
	
	var self = Ti.UI.createView({
		backgroundColor:'lightgray',
		right:'0%',
		width:'30%'
	});
	
	var title = Ti.UI.createLabel({
		text:'Player: ' + _controller.player.name,
		top:'0px',
		color: '#900',
  		font: { fontSize:14, fontWeight:'bold', textStyle:Titanium.UI.TEXT_STYLE_HEADLINE },
  		shadowRadius: 3,
  		textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,
  		width: Ti.UI.SIZE, height: Ti.UI.SIZE
	});
	
	var btnLifeCycle = Ti.UI.createButton({
		title:'Avanzar Turno',
		top: '50px',
		font: { fontSize:14 }
	});
	
	
	btnLifeCycle.addEventListener('click',function(){
		_controller.lifeCycle();			
	});
	
		
	self.add(title);
	self.add(btnLifeCycle);
	
	return self;
	
}

module.exports = MapDetails;